package com.ruoyi.aimp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aimp.mapper.Aimp_PeoplewarnMapper;
import com.ruoyi.aimp.domain.Aimp_Peoplewarn;
import com.ruoyi.aimp.service.IAimp_PeoplewarnService;

/**
 * 人群聚集Service业务层处理
 * 
 * @author fengfeng
 * @date 2022-06-18
 */
@Service
public class Aimp_PeoplewarnServiceImpl implements IAimp_PeoplewarnService 
{
    @Autowired
    private Aimp_PeoplewarnMapper aimp_PeoplewarnMapper;

    /**
     * 查询人群聚集
     * 
     * @param peoplewarnId 人群聚集主键
     * @return 人群聚集
     */
    @Override
    public Aimp_Peoplewarn selectAimp_PeoplewarnByPeoplewarnId(Long peoplewarnId)
    {
        return aimp_PeoplewarnMapper.selectAimp_PeoplewarnByPeoplewarnId(peoplewarnId);
    }

    /**
     * 查询人群聚集列表
     * 
     * @param aimp_Peoplewarn 人群聚集
     * @return 人群聚集
     */
    @Override
    public List<Aimp_Peoplewarn> selectAimp_PeoplewarnList(Aimp_Peoplewarn aimp_Peoplewarn)
    {
        return aimp_PeoplewarnMapper.selectAimp_PeoplewarnList(aimp_Peoplewarn);
    }

    /**
     * 新增人群聚集
     * 
     * @param aimp_Peoplewarn 人群聚集
     * @return 结果
     */
    @Override
    public int insertAimp_Peoplewarn(Aimp_Peoplewarn aimp_Peoplewarn)
    {
        return aimp_PeoplewarnMapper.insertAimp_Peoplewarn(aimp_Peoplewarn);
    }

    /**
     * 修改人群聚集
     * 
     * @param aimp_Peoplewarn 人群聚集
     * @return 结果
     */
    @Override
    public int updateAimp_Peoplewarn(Aimp_Peoplewarn aimp_Peoplewarn)
    {
        return aimp_PeoplewarnMapper.updateAimp_Peoplewarn(aimp_Peoplewarn);
    }

    /**
     * 批量删除人群聚集
     * 
     * @param peoplewarnIds 需要删除的人群聚集主键
     * @return 结果
     */
    @Override
    public int deleteAimp_PeoplewarnByPeoplewarnIds(Long[] peoplewarnIds)
    {
        return aimp_PeoplewarnMapper.deleteAimp_PeoplewarnByPeoplewarnIds(peoplewarnIds);
    }

    /**
     * 删除人群聚集信息
     * 
     * @param peoplewarnId 人群聚集主键
     * @return 结果
     */
    @Override
    public int deleteAimp_PeoplewarnByPeoplewarnId(Long peoplewarnId)
    {
        return aimp_PeoplewarnMapper.deleteAimp_PeoplewarnByPeoplewarnId(peoplewarnId);
    }
}
